play (one's) cards right

Translations
bien s'y prendre
Definitions
To act in a way that is advantageous or strategic, making the best choices to achieve a desired outcome.